<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品评价</title>
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/header.css">
    <link rel="stylesheet" href="css/popBox.css">
    <link rel="stylesheet" href="css/evaluate.css">
    <!-- fontawesome字体 -->
    <link rel="stylesheet" href="font/font-awesome.min.css">
</head>

<body>
    <!-- 头部 -->
    <div id="header">
        <div class="headerBox">
            <ul class="headerBox_left">
                <li class="activate_font"><a href="index.html" class="activate_font">书瞳</a></li>
                <li><a href="login.html">登录</a></li>
                <li><a href="register.html">注册</a></li>
            </ul>

            <ul class="headerBox_right">
                <li><a href="star.html"><i class="fa fa-star activate_font"></i>&nbsp;&nbsp;收藏</a></li>
                <li><a href="cart.html"><i class="fa fa-cart-plus activate_font"></i>&nbsp;&nbsp;购物车</a></li>
                <li class="my">
                    <div>我的&nbsp;&nbsp;<i class="fa fa-caret-left activate_font"></i></div>
                    <ul class="mylist">
                        <li><a href="order.html">订单</a></li>
                        <li><a href="consignee.html">收货地址</a></li>
                        <li><a href="#" class="changePwd">修改密码</a></li>
                    </ul>

                </li>
            </ul>
        </div>

        <!-- 修改密码隐藏框 -->
        <!-- 编辑弹出框 -->
        <div class="outsideLayer" style="display: none;"></div>
        <div id="pwd" class="popBox" style="display: none;">
            <div class="popTitle">
                <span>修改密码</span>
                <span><a href="#" class="dropPop">×</a></span>
            </div>
            <div class="popContent">
                <div class="popItem">
                    <span>新密码</span>
                    <div>
                        <input type="password" />
                    </div>
                </div>
                <div class="popItem">
                    <span>确认密码</span>
                    <div>
                        <input type="password">
                    </div>
                </div>

            </div>
            <div class="popBtn">
                <button class="ok" id="pwdok">确认修改</button>
                <button class="cancel dropPop">取消</button>
            </div>
        </div>
    </div>

    <div id="evaluate">
        <div class="evaluateBox">
            <div class="picBox">
                <img src="image/10m.jpg" alt="">
            </div>
            <div class="ct">
                <div class="bq" data-id="1">
                    <span>专业性强！紧跟技术潮流！</span>
                    <span>实用性强！</span>
                    <span>对我的帮助很大！</span>
                    <span>商品包装完美！</span>
                </div>

                <textarea name="pjcontent1" cols="30" rows="10"></textarea>

            </div>

        </div>

        <div class="submitBox">
            <button>提交评价</button>

        </div>
    </div>
    <script src="js/jquery-1.8.3.min.js"></script>
    <script src="js/header.js"></script>
    <script>
        $(function () {
            //评价用语被点击
            $('span').click(function () {
                let id = $(this).parent().data('id');
                let content = $(this).text();
                let c = $('textarea[name="pjcontent' + id + '"]').val();
                $('textarea[name="pjcontent' + id + '"]').val(c + content);
            });
        });
    </script>
</body>

</html>